-- GENERATED SPELL FOR [Kurzen Commando] --


function spell0_938(pUnit, Event) --@Backstab,n/a--
pUnit:FullCastSpellOnTarget(2591,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_938', 636, 1)
end

function spell1_938(pUnit, Event) --@Smoke Bomb,Self--
pUnit:FullCastSpellOnTarget(7964,pUnit)
pUnit:RegisterEvent('Sorts_938', 4331, 1)
end

function Sorts_938(pUnit, Event)
local choix_sorts_938 = math.random(0, 1)
if choix_sorts_938 == 0 then
pUnit:RegisterEvent('spell0_938', 1, 1)
end
if choix_sorts_938 == 1 then
pUnit:RegisterEvent('spell1_938', 1, 1)
end
end

function mob938_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_938', math.random(1500, 3000), 1)
end

function mob938_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob938_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob938_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(938, 1, 'mob938_Action')
RegisterUnitEvent(938, 2, 'mob938_Leave')
RegisterUnitEvent(938, 3, 'mob938_Kill')
RegisterUnitEvent(938, 4, 'mob938_Die')
